From fde3ff30958b1e421db5d28afac2b9133093a7ee Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 28 Nov 2005 13:39:22 +0100 Subject: [PATCH] Simplify boot_vcpu() implementation. Signed-off-by: Tony Breeds --- xen/common/domain.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index 430c0b0a8c..b32087a155 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -376,14 +376,10 @@ int set_info_guest(struct domain *d, dom0_setdomaininfo_t *setdomaininfo) int boot_vcpu(struct domain *d, int vcpuid, struct vcpu_guest_context *ctxt) { struct vcpu *v = d->vcpu[vcpuid]; - int rc; BUG_ON(test_bit(_VCPUF_initialised, &v->vcpu_flags)); - if ( (rc = arch_set_info_guest(v, ctxt)) != 0 ) - return rc; - - return rc; + return arch_set_info_guest(v, ctxt); } long do_vcpu_op(int cmd, int vcpuid, void *arg) -- 2.30.2